package com.day18.ex03;

import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;

public class CopyJavaDemo02 {
    public static void main(String[] args)throws IOException {
        FileReader fr=new FileReader("myCharSream\\ConversionSreamDemo.java");
        FileWriter fw=new FileWriter("myCharSream\\ConversionSreamDemo02.java");
        char[] chs=new char[1024];
        int len;
        while ((len=fr.read(chs))!=-1){
            fw.write(chs,0,len);
        }
        fw.close();
        fr.close();
    }
}
